﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;


namespace CestodoBebe.Util
{
    /// <summary>
    /// Carrega os dados de conexão do Web.config
    /// </summary>

    public static class Configuracao
    {
        private static string m_ConnectionString;
        private static string m_ProviderName;

        static Configuracao()
        {
            m_ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
            m_ProviderName = ConfigurationManager.ConnectionStrings["ConnectionString"].ProviderName;
        }

        public static string ConnectionString
        {
            get { return m_ConnectionString; }
        }

        public static string ProviderName
        {
            get { return m_ProviderName; }
        }
    }
}